package com.szu.subject.ui.service;

import java.util.List;

import com.szu.subject.domains.Course;
import com.szu.subject.domains.Selection;

/**
 * course的service层
 * 
 * @author Shenxialin
 *
 */
public interface CourseService {


	/**
	 * 获得课程信息
	 * 
	 * @param id
	 *            课程id
	 * @return
	 */
	public Course getByPK(Long id);

	public Course getCourseByAccount(String account);

	public List<Course> getCourseByName(String courseName);/*根据课程名称,返回课程*/
	
	public List<Course> getCoursesByCollege(Long id);/*根据学院ID,返回学院开设课程*/
	
	public List<Course> getCoursesByTeacherName(String teacherName);/*根据老师名称,返回课程*/	

	public Course createCourse(Course course);
	
	public Course updateCourse(Course course);
	
	public int deleteCourse(Long id);

	public List<Course> batchCreateCourses(List<Course> courses);
	
	public List<Course> batchUpdateCourses(List<Course> courses);
	
	public int batchDeleteCourses(List<Long> id);

	public List<Course> getCoursesByClassTIme(String classTime);

	public List<Course> getCoursesByIdList(List<Long> coursesId);

	public List<Course> getAllCourses();
	
}
